﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;
namespace net{
	public class StartMPGame : MonoBehaviour {

		// Update is called once per frame
		public void Click () {
			if(Network.peerType== NetworkPeerType.Server){
				//Application.LoadLevel("Multi_Level0");
				networkView.RPC("networkLoadlevel", RPCMode.All, "netPlay");
			}
		}
		[RPC]
		public void networkLoadlevel(string levelName){
			Application.LoadLevel(levelName);
		}
	}
}